package com.bookcode.entity;

import lombok.Data;

import javax.persistence.*;

/* 课程的学生中间表
*  学生添加课程
* */

@Table(name = "course_student")
@Entity
@Data
public class CourseStudent extends BaseEntity{
    @Column(name="student_id",nullable = false)
    private String student_id;//学生学号
    @Column(name="course_id",nullable = false)
    private String  course_id;//课程id
//    @Column
//    private Long courseId;
/*
    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }
*/
//    @Column
//    private Long  studentId;


}
